package com.firebird.app.fekpsl.mvp.me

import com.firebird.app.fekpsl.base.BasePresenter
import com.firebird.app.fekpsl.ext.ss

/**
 * Created by chenxz on 2018/6/3.
 */
class RealNamePresenter : BasePresenter<RealNameContract.Model, RealNameContract.View>(), RealNameContract.Presenter {

    override fun createModel(): RealNameContract.Model? = RealNameModel()

    override fun updateRealName(userUuid: String, realName: String) {
        mModel?.updateRealName(userUuid, realName)?.ss(mModel, mView) {
            mView?.updateRealNameSuccess(success = true)
        }
    }
}